import type { paramsType } from '@/types/global'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/request'
type HotParams = paramsType & {
    subType?: string
}

//通用热门推荐类型
export const getHotRecommendAPI = (url: string, data?: HotParams) => {
    return http<HotResult>({
        url,
        method: 'GET',
        data,
    })
}